package com.dong.combinationMode.service.engine;

import com.dong.combinationMode.model.aggregates.TreeRich;
import com.dong.combinationMode.model.vo.EngineResult;

import java.util.Map;

/**
 * @author DongJiaQi
 * @create 2023/1/5 10:13
 * @Description: 决策引擎接口
 */
public interface IEngine {
    /**
     * 决策 流程
     * @param treeId 树id
     * @param userId 用户id
     * @param treeRich 规则树聚合
     * @param decisionMatter 决策所需的信息
     * @return
     */
    EngineResult process(final Long treeId, final String userId, TreeRich treeRich, final Map<String, String> decisionMatter);
}
